package com.vote.business.service.impl;

import com.vote.business.domain.vo.FrontUserVoteStatusTotalVO;
import com.vote.business.domain.vo.FrontUserVoteTotalVO;
import com.vote.business.mapper.UserFrontStatVoteMapper;
import com.vote.business.service.IFrontUserVoteTotalService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class FrontUserVoteTotalImpl implements IFrontUserVoteTotalService {

    @Autowired
    UserFrontStatVoteMapper userFrontStatVoteMapper;
    @Override
    public FrontUserVoteTotalVO countVotesByUserId(Long userId) {
        return userFrontStatVoteMapper.countVotesByUserId(userId);
    }

    @Override
    public FrontUserVoteStatusTotalVO countStatusVotesByUserId(FrontUserVoteStatusTotalVO frontUserVoteStatusTotalVO) {
        return userFrontStatVoteMapper.countStatusVotesByUserId(frontUserVoteStatusTotalVO);
    }
}
